// src/user/user.module.ts
import { Module } from '@nestjs/common';
import { TypeOrmModule } from '@nestjs/typeorm';
import { User } from './entities/User.entity';
import { UserService } from './services/User.service';
import { UserController } from './controllers/User.controller';
import { RouterModule } from '@nestjs/core';
import { JwtService } from '../auth/jwt.service';
import { WxModule } from '../wx/wx.module';
import { UserInfoController } from './controllers/UserInfo.controller';
import { UserInfoService } from './services/UserInfo.service';
import { OptionEntity } from '@src/modules/Survey/entities/Option.entity';
import { QuestionEntity } from '@src/modules/Survey/entities/Question.entity';



@Module({
  imports: [
    RouterModule.register([
      {
        path: '/',
        module: UserModule,
      },
    ]),
    TypeOrmModule.forFeature([User]),
    WxModule,
  ],
  controllers: [UserController, UserInfoController],
  providers: [UserService, JwtService, UserInfoService],
  exports: [UserService],
})
export class UserModule {
}
